package com.hmall.cart;

import com.hmall.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

//basePackages配置hm-api模块中的FeignClient接口包路径
//defaultConfiguration配置FeignClient的默认配置类(其中的日志配置)
@EnableFeignClients(basePackages = "com.hmall.api.client",
        defaultConfiguration = DefaultFeignConfig.class)
//@EnableFeignClients(clients = {ItemClient.class})
@MapperScan("com.hmall.cart.mapper")
@SpringBootApplication
public class CartServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(CartServiceApplication.class, args);
    }

}
